#ifndef MESSAGINGWIDGET_H
#define MESSAGINGWIDGET_H

#include <QWidget>

#include <messaginglayer/contactinfo.h>

class QLabel;
class QTextEdit;
class QPushButton;
class QToolBar;
class QToolButton;
class QWebView;

class MessagingWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MessagingWidget(QWidget *parent = 0);

    ContactInfo currentContact() const;
    void setCurrentContact(const ContactInfo &cinfo);

signals:

private slots:
    void closeDialog();
    void sendMessage();
    void messagingHistoryAvaible();

private:
    ContactInfo m_currentContact;

    QLabel * m_currentContactLabel;
    QToolButton * m_closeDialogButton;
    QWebView * m_conversationText;
    QToolBar * m_toolBar;
    QTextEdit * m_outgoingMessage;
    QPushButton * m_sendButton;
};

#endif // MESSAGINGWIDGET_H
